<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
欢迎用户：<span th:text="${username}"></span>
<table>
    <tr th:each="user,status:${userList}">
        <td th:text="${status.index}"></td>
    </tr>
</table>
日期date: <span th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}"></span><br>
工资salary: <span th:text="${#numbers.formatDecimal(salary,0,2)}"></span><br>
集合list长度: <span th:text="${#lists.size(userList)}"></span><br>
集合list内容: <span th:text="${#lists.toList(userList)}"></span><br>
获取并截取字符串: <span th:text="${#strings.substring(word,0,5)}"></span><br>

</body>
</html>